﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MishraReader.Entities;
using MishraReader.Entities.ShareServices;
using MishraReader.ViewModels.Settings.Options;
using Ninject;
using Ninject.Modules;

namespace MishraReader
{
    public class InstapaperModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IShareService>().To<InstapaperShareService>().WhenInjectedInto<InstapaperShareServicePackage>();

            Bind<Func<IShareServiceConfigurationViewModel>>().ToMethod(
               ctx =>
               () => ctx.Kernel.Get<GenericConfigurationViewModel>()).WhenInjectedInto<InstapaperShareServicePackage>();
          
            Bind<IShareServicePackage>().To<InstapaperShareServicePackage>();
        }
    }
}
